package com.test.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.test.pojo.TbOrderItem;
import com.test.service.TbOrderItemService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yanglijun
 * @since 2020-12-12
 */
@RestController
@RequestMapping("/tb-order-item")
public class TbOrderItemController {
    @Resource
    TbOrderItemService orderItemService;
    @RequestMapping("/getOrdersItems")
    public List<TbOrderItem> getOrdersItems(){
       /* QueryWrapper queryWrapper = new QueryWrapper();
        queryWrapper.eq("orderId",orderId);
        */
        return orderItemService.list();
    }


}

